package cn.ht.jywrwater.module.ht.convert.town;

import java.util.*;

import cn.ht.jywrwater.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.ht.jywrwater.module.ht.controller.admin.town.vo.*;
import cn.ht.jywrwater.module.ht.dal.dataobject.town.TownDO;

/**
 * 乡镇管理 Convert
 *
 * @author hzx
 */
@Mapper
public interface TownConvert {

    TownConvert INSTANCE = Mappers.getMapper(TownConvert.class);

    TownDO convert(TownCreateReqVO bean);

    TownDO convert(TownUpdateReqVO bean);

    TownRespVO convert(TownDO bean);

    List<TownRespVO> convertList(List<TownDO> list);

    PageResult<TownRespVO> convertPage(PageResult<TownDO> page);

    List<TownExcelVO> convertList02(List<TownDO> list);

}
